package com.ee.chat.api.service;

import com.ee.chat.common.bean.Result;

import java.util.List;
import java.util.Map;

public interface IDynamicService {
    /**
     * 处理动态的json文件字符串和点赞记录
     * @Author Shane
     * @Date 2020/3/29 11:20
     * @param
     * @return
     */
    void handleDynamic(List<Map<String, Object>> dynamics);

    /**
     * 获取动态
     * @Author Shane
     * @Date 2019/8/316:05
     * @param type  类型，0-热门  1-最新
     * @param id    动态起始id
     * @return
     **/
    Result getDynamics(String token, Integer type, Integer id, String location, Integer page, Integer limit) throws Exception;

    Result likeDynamic(String token, Integer id, Integer like) throws Exception;

    Result buyDynamic(String token, Integer id) throws Exception;

    Result getDynamicCharge(String token, Integer type) throws Exception;

    Result publishDynamic(String token, String title, String dynamic, Integer type, Integer chargeId, String address, String location) throws Exception;

    Result updDynamicCharge(String token, Integer id, Integer chargeId) throws Exception;

    Result delDynamic(String token, Integer id) throws Exception;

    Result addWatchLog(String token, Integer id) throws Exception;

    Result adderSuggestion(String token, String city, String location, String search) throws Exception;
}
